package com.loanpcase.wx;

import com.loanpcase.Config;
import com.loanpcase.LPCase;
import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.Map;

public class WXP0001 extends LPCase{

    @Override
    protected String getRequestUrl() {
        return "/WX/WXP0001";
    }

    protected Map<String,Object> getRequestData(){
        HashMap<String,Object> REQUESTDATA = new HashMap<String, Object>();
        REQUESTDATA.put("APPLY_NO", StringUtils.rightPad("AL"+System.currentTimeMillis(),32,"0"));
        REQUESTDATA.put("CUS_NAME","测试用户01");
        REQUESTDATA.put("CER_TYPE","01");
        REQUESTDATA.put("CER_NO","442102406013627");
        REQUESTDATA.put("LOAN_CURRENCY","CNY");
        REQUESTDATA.put("TRAN_PRICE","1000000");
        REQUESTDATA.put("MRTST","1");
        REQUESTDATA.put("HOUSE_COUNTER","1");
        REQUESTDATA.put("LOAN_OF_PERSON","01");
        REQUESTDATA.put("HOUSEADDR","");
        REQUESTDATA.put("ESTNAME","景新花园");
        REQUESTDATA.put("BLONAME","景秀阁");
        REQUESTDATA.put("HOUSENO","305");
        REQUESTDATA.put("COVEREDAREA","100");
        REQUESTDATA.put("BELONGEDDISTRICT","440304");
        REQUESTDATA.put("DEALDATE","20170708");
        return REQUESTDATA;

    }

    static public void main(String[] args){
        new WXP0001().run(Config.TEST_CONTEXT_URL_1603);
      // new WXP0001().run("http://127.0.0.1:11003/loanproxy");
    }
}
